package com.itheima.volatileGuanJianZi;

public class Girl extends Thread {
    @Override
    public void run() {

            while(true){
                synchronized (Money.obj) {
                if (Money.money!=100000){
                    System.out.println("金额不是十万了");
                    break;
                }
            }
        }
    }
}




